/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-11-15
 * Time: 20:26
 */
public class Dog extends Animal{

    String color;


    //2.方法的重写
    public void eat() {
        System.out.println(this.name+"正在吃狗粮.......");
    }

    //子类的构造方法
    public Dog(String name, int age,String color) {
        super(name,age);
    }

}
